home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
petc12.zip
/
PETC.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-07-07
|
3KB
|
223 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
Integer INTEGER008
Integer INTEGER009
Integer INTEGER010
Integer INTEGER011
Integer INTEGER012
Integer INTEGER013
Integer INTEGER014
String STRING001
String STRING002
String TSTRING003(100)
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String TSTRING009(100)
;------------------------------------------------------------------------------
STRING001 = ""
STRING002 = ""
STRING004 = ""
STRING005 = ""
STRING006 = ""
STRING007 = ""
STRING008 = ""
INTEGER014 = 0
FOpen 1, PPEPath() + "petc.cfg", 0, 2
FGet 1, INTEGER003
FGet 1, INTEGER004
FGet 1, INTEGER006
FGet 1, STRING004
FGet 1, STRING005
FGet 1, STRING006
FGet 1, STRING007
FGet 1, INTEGER009
FClose 1
FOpen 1, PPEPath() + "proms.dat", 0, 2
For INTEGER001 = 1 To INTEGER003
FGet 1, TSTRING003(INTEGER001)
Next
FClose 1
Select Case (INTEGER006)
Case 1
INTEGER006 = 1 * 1
Case 2
INTEGER006 = 1 * 2
Case 3
INTEGER006 = 1 * 3
Case 4
INTEGER006 = 1 * 4
Case 5
INTEGER006 = 1 * 5
End Select
If (Upper(STRING004) == "Y") Then
INTEGER010 = Random(INTEGER003)
If (INTEGER010 == 0) Then
INTEGER010 = 1
Endif
STRING001 = TSTRING003(INTEGER010)
Else
STRING001 = TSTRING003(INTEGER004)
Endif
If (GrafMode() == Chr(78)) Then
Print STRING006 + STRING001 + STRING007
While (STRING002 <> Chr(13)) Do
INTEGER011 = INTEGER011 + 1
If (INTEGER011 == 200) Goto LABEL001
STRING002 = Inkey()
EndWhile
Else
INTEGER005 = Len(STRING001) / 5
For INTEGER001 = 1 To INTEGER009
PrintLn
Next
INTEGER001 = 0
INTEGER007 = GetX()
INTEGER008 = GetY()
If (Exist(PPEPath() + "anim.dat")) Then
STRING008 = "Y"
FOpen 3, PPEPath() + "anim.dat", 0, 2
FGet 3, INTEGER012
For INTEGER001 = 1 To INTEGER012
FGet 3, TSTRING009(INTEGER001)
Next
FClose 3
Endif
INTEGER001 = 0
INTEGER002 = INTEGER005 * 5
INTEGER013 = 0
If (STRING004 == "Y") Then
INTEGER014 = Random(100) + 20
If (INTEGER014 > 50) STRING008 = ""
Endif
INTEGER011 = 0
While (STRING002 <> Chr(13)) Do
CdChkOn
INTEGER013 = INTEGER013 + 1
If (STRING008 == "Y") STRING001 = TSTRING009(INTEGER013)
INTEGER011 = INTEGER011 + 1
If (INTEGER011 == 200) Break
AnsiPos INTEGER007, INTEGER008
STRING002 = Inkey()
Print "@POFF@" + STRING005 + STRING006
If (INTEGER001 == 0) Then
Print STRING001
Endif
If (INTEGER001 > 0) Then
Print Right(STRING001, INTEGER002)
Print Left(STRING001, INTEGER001)
Endif
If (STRING008 <> "Y") Then
INTEGER002 = INTEGER002 - 5
INTEGER001 = INTEGER001 + 5
Endif
If (INTEGER002 == 0) Then
INTEGER002 = INTEGER005 * 5
Endif
If (INTEGER001 == INTEGER005 * 5) Then
INTEGER001 = 0
Endif
Print STRING005 + STRING007
If (STRING008 == "Y") Then
If (INTEGER013 == INTEGER012) INTEGER013 = 0
Endif
Delay INTEGER006
EndWhile
Endif
:LABEL001
KbdStuff Chr(13)
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 34 Goto
; 45 Let
; 6 Print
; 1 PrintLn
; 26 If
; 3 FOpen
; 3 FClose
; 11 FGet
; 1 CdChkOn
; 1 Delay
; 1 KbdStuff
; 1 AnsiPos
;
;
; ■ Functions used :
;
; 8 *
; 1 /
; 17 +
; 1 -
; 17 ==
; 3 <>
; 3 <
; 3 <=
; 2 >
; 6 >=
; 21 !
; 6 &&
; 3 ||
; 1 Len(
; 1 Upper()
; 1 Left()
; 1 Right()
; 4 Chr()
; 2 Random()
; 2 Inkey()
; 4 PPEPath()
; 1 Exist()
; 1 GetX()
; 1 GetY()
; 1 GrafMode()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 3 For/Next
; 2 While/EndWhile
; 11 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------